//生成一个随机整数,范围是[min,max]
function getRandomInt(min,max){
    return Math.floor(Math.random()*(max-min+1))+min;
}

//生成一个随机的十六进制的值,在0-f之间
function getHex(){
    for (let index = 0; index < 4; index++) {
        console.log(getRandomInt(0,1))
    }
}

var init = function(){
    console.log('16'.toString(16));
}()


var name = "this window"





var object = {
    name:"my object",
    getNameFunc: function (){
        return function(){
            return this.name;
        }
    }
}

alert(object.getNameFunc()());